﻿using System;
using System.Web.Mvc;
using SubSystem.Models;

namespace SubSystem.Helpers
{
    public static class HtmlImage
    {
        public static string Image(this HtmlHelper html, Image image)
        {
            return string.Format
                (
                    "<img src=\"{0}\" alt=\"{1}\" class=\"{2}\" />",
                    image.Source,
                    image.Alt,
                    image.Class
                );
        }

        public static string Image(this HtmlHelper html, object image)
        {
            throw new NotImplementedException();
        }
    }
}
